import { Navigate } from "react-router-dom"
import Home from "../pages/Home"
import User from "../pages/User"
import Cart from "../pages/Cart"
import Category from "../pages/Category"

const routes = [
  {
    path: "/",
    element: <Navigate to="/home" />
  },
  {
    path: "/home",
    element: <Home />
  },
  {
    path: "/category",
    element: <Category />
  },
  {
    path: "/cart",
    element: <Cart />
  },
  {
    path: "/user",
    element: <User />
  }
]

export default routes
